<template>
  <div class="model-form">
    <el-page-header @back="goBack" content="详情">
    </el-page-header>

    <div class="form-title">详细信息</div>
    <el-form class="viewForm" label-width="80px">
      <el-col :span="22">
        <el-form-item label="商家名称">
          <div v-html="viewModel.shopName"></div>
        </el-form-item>
      </el-col>
      <el-col :span="22">
        <el-form-item label="套餐名称">
          <div v-html="viewModel.name"></div>
        </el-form-item>
      </el-col>
      <el-col :span="22">
        <el-form-item label="套餐描述">
          <div v-html="viewModel.note"></div>
        </el-form-item>
      </el-col>
      <el-col :span="22">
        <el-form-item label="套餐价格">
          <div v-html="viewModel.money"></div>
        </el-form-item>
      </el-col>
    </el-form>

  </div>
</template>

<script>
  import common from "@/mixins/common.js";

  export default {
    mixins: [common],
    data() {
      return {
        viewModel: {},
        activeIndex: "1",
      };
    },
    mounted() {
      var id = this.$route.query.id;
      var self = this;
      var data = {};
      data.id = id;

      var url = self.$CONFIG.REMOTE_URL + "/rest/setmeal/view.htm";
      console.info(url);
      this.$HTTP.form(url, data).then((res) => {
        if (res.code == 0) {
          self.viewModel = res;
        }
      });
    },
  };
</script>

<style>
</style>